package workflow.dto;

import java.io.Serializable;
import java.util.List;

import workflow.others.MessageType;



public class WorkflowMessage  implements Serializable {
	
	/** typ wiadomosci */
	private MessageType messageType;
	
	/** klasa tworcy wiadomosci */
	private Class creatorClass;
	
	/** nazwa bloku w ktorym ta wiadomosc powstala */
	private String blockName;
	
	/** opis bledu jesli wystapil */
	private String errorDescription = null;
	
	/** tabela z wartosciami */
	private List<Object> values;

	public WorkflowMessage(Class creatorClass) {
		this.messageType = MessageType.CORRECT;
		this.creatorClass = creatorClass;
	}

	public WorkflowMessage(Class creatorClass, MessageType messageType) {
		this.messageType = messageType;
		this.creatorClass = creatorClass;
	}

	public String getBlockName() {
		return blockName;
	}

	public void setBlockName(String blockName) {
		this.blockName = blockName;
	}

	public String getErrorDescription() {
		return errorDescription;
	}

	public void setErrorDescription(String errorDescription) {
		this.errorDescription = errorDescription;
	}

	public List<Object> getValues() {
		return values;
	}

	public void setValues(List<Object> values) {
		this.values = values;
	}

	public MessageType getMessageType() {
		return messageType;
	}

	public Class getCreatorClass() {
		return creatorClass;
	}

	public void setCreatorClass(Class creatorClass) {
		this.creatorClass = creatorClass;
	}
	
}
